<%@page pageEncoding="utf-8" contentType="text/html; utf-8" isELIgnored="false" %>
<%--导入标签库就能用指令--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script src="js/jQuery-v3.4.1.js"></script>
<script type="text/javascript">
    function getCurDate()
    {
        var d = new Date();
        var week;
        switch (d.getDay()){
            case 1: week="星期一"; break;
            case 2: week="星期二"; break;
            case 3: week="星期三"; break;
            case 4: week="星期四"; break;
            case 5: week="星期五"; break;
            case 6: week="星期六"; break;
            default: week="星期天";
        }
        var years = d.getFullYear();

        var month = add_zero(d.getMonth()+1);
        var days = add_zero(d.getDate());
        var hours = add_zero(d.getHours());
        var minutes = add_zero(d.getMinutes());
        var seconds=add_zero(d.getSeconds());
        var ndate = years+"年"+month+"月"+days+"日 "+hours+":"+minutes+":"+seconds+" "+week;
        document.getElementById("date").innerHTML = ndate;
    }

    function add_zero(temp)
    {
        if(temp<10) return "0"+temp;
        else return temp;
    }

    setInterval("getCurDate()",100);
</script>
<div id="header">
    <div id="rightheader">
        <p id="date"></p>
    </div>
    <div id="topheader">

        <h1 id="title">
            <a href="#">用户管理系统</a>
        </h1>
    </div>
    <div id="navigation">
    </div>
</div>